<?php

namespace App\Http\Resources\AuthResources;

use App\Http\Resources\Resource;
use App\Models\Device;
use App\Models\User;

class InviteResource extends Resource
{
    public function toArray($request)
    {
        $user = User::find($this->id);
        return [
            'username' => $this->username,
            'level' => $this->vip_level,
            'time' => date("Y-m-d h:i:s", strtotime($this->created_at))
        ];
    }
}
